package com.supermap.localization.impl;

import java.util.List;

import com.supermap.localization.api.SampleComponent;
import com.supermap.localization.api.SamplesSaver;
import com.supermap.localization.commontypes.SampleInfo;

public class SqliteSamplesSaver implements SamplesSaver {

    private SampleComponent dbSampleComponent;

    public void setDbSampleComponent(SampleComponent dbSampleComponent) {
        this.dbSampleComponent = dbSampleComponent;
    }

    @Override
    public void saveSamples(List<SampleInfo> infos) {
        dbSampleComponent.saveSample(infos);
    }

}
